package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface TrackInfoMapper extends BaseMapper<TrackInfo> {


    IPage<Map<String, Object>> findAlbumTrackPage(Page<Map<String, Object>> mapWithPage, Long albumId);

    IPage<TrackListVo> findUserTrackPage(Page<TrackListVo> trackListWithPage, TrackInfoQuery trackInfoQuery);


}
